package com.zhoust.search.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author 15703
 * @version 1.0
 * @Title
 * @package com.zhoust.search.config
 * @date 2020/11/1 13:40
 * @desc
 */
@Configuration
public class ESConfig {

    /**
     * 解决netty引起的issue
     */

    @PostConstruct
    void init() {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }

}
